package com.levy.contronller.jvm.bytecode;

import cn.hutool.core.codec.Base64;
import cn.hutool.http.HttpUtil;

import javax.lang.model.element.Name;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;

/**
 * Created by levy on 2019/6/20.
 */
public class MyTest1 {
    private static String name = "jack";

    private int x =5;

    public static Integer in =10;

    private synchronized void setX(int x){
        this.x = x;
    }

    private void test(String str){
        synchronized (str){
            System.out.println("hello ");
        }
    }


    public static void main(String[] args) throws UnsupportedEncodingException {
        MyTest1 myTest1 = new MyTest1();
        myTest1.setX(5);
        in = 20;
    }
}
